<?php
include_once("../../config.php");
include "../../coresection/connection.php";
$plate=select_one_line_all_items($table_Prefix."plate","mid = 'equipment'");
?>


<?
//用来判断当前系统属于什么板块
$system_part = $plate['mid'];
?>
  



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php include_once(ROOT_PATH_.'/controlbase/modules/head.php'); ?>
</head>

<body>
 



 
<?php


$new_detail_name           = addslashes($_REQUEST['name']);
$new_detail_buydate        = addslashes($_REQUEST['buydate']);
$new_detail_jishen         = addslashes($_REQUEST['jishen']);
$new_detail_nianshen       = addslashes($_REQUEST['nianshen']);
$new_detail_baoxianshijian = addslashes($_REQUEST['baoxianshijian']);
$new_detail_brand          = addslashes($_REQUEST['brand']);
$new_detail_status         = addslashes($_REQUEST['status']);
$new_detail_remark         = addslashes($_REQUEST['remark']);
$new_detail_departmentid         = addslashes($_REQUEST['departmentid']);
$new_detail_type         = addslashes($_REQUEST['type']);
$new_detail_mid         = addslashes($_REQUEST['mid']);

   



//设置需要搜索的表格的前缀后缀
$table_Suffix = "equipment";
$table = $table_Prefix . $table_Suffix;
//设置需要搜索的表格的前缀后缀
 
 

$sql = "INSERT INTO $table (
name,
buydate,
jishen,
nianshen,
baoxianshijian,
brand,
status,
departmentid,
type,
mid,
remark
)

value (
'$new_detail_name',
'$new_detail_buydate',
'$new_detail_jishen',
'$new_detail_nianshen',
'$new_detail_baoxianshijian',
'$new_detail_brand',
'$new_detail_status',
'$new_detail_departmentid',
'$new_detail_type',
'$new_detail_mid',
'$new_detail_remark'
)";


$query = mysql_query($sql) or die ('添加数据失败！！');


mysql_close($con);

 
?>





<script type="text/javascript">
    alert("输入信息已保存，点击确认返回继续操作.");
    document.location.href = "detail-list.php?nav-itemed=equipment";
</script>
</body>